package cn.majingjing.tm.dubbo.provide.service.impl;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import cn.majingjing.tm.dubbo.api.DemoService;

import java.util.UUID;

@com.alibaba.dubbo.config.annotation.Service(interfaceClass = DemoService.class)
@Service
public class DemoServerImp implements DemoService {

    @Value("${server.port}")
    private String port;

    @Override
    public String sayHello(String s) {
        return UUID.randomUUID().toString() + "\t你好，" + s + "! \t\t " + port;
    }
}

